package com.jcsz.gulimall.product.feign;

import com.jcsz.common.to.MemberPriceTo;
import com.jcsz.common.to.SkuFullReductionTo;
import com.jcsz.common.to.SkuLadderTo;
import com.jcsz.common.to.SpuBoundsTo;
import com.jcsz.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @className: CouponFeignService
 * @author: 一把Po吉他
 * @date: 2022/10/26 15:51
 * @version: 1.0
 **/
@FeignClient(value = "guli-coupon")
public interface CouponFeignService {
    @RequestMapping("/coupon/skufullreduction/save")
    R saveSkuFullReduction(@RequestBody SkuFullReductionTo skuFullReductionTo);

    @RequestMapping("/coupon/skuladder/save")
    R saveSkuLadder(@RequestBody SkuLadderTo skuLadderTo);

    @RequestMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);

    @RequestMapping("/coupon/memberprice/save")
    R saveMemberPrice(@RequestBody MemberPriceTo memberPriceTo);
}
